// src/whisper/whisper.controller.ts
import {
  Controller,
  Post,
  UploadedFile,
  UseInterceptors,
} from '@nestjs/common';
import { FileInterceptor } from '@nestjs/platform-express';
import { WhisperService } from './whisper.service';

@Controller('whisper')
export class WhisperController {
  constructor(private readonly whisperService: WhisperService) {}

  // @Post('transcribe')
  // @UseInterceptors(FileInterceptor('audio'))
  // async transcribeAudio(
  //   @UploadedFile() file: Express.Multer.File,
  // ): Promise<string> {
  //   return this.whisperService.transcribeAudio(file.buffer);
  // }
}
